
import java.util.Vector;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Dakalo
 */
public class keyWords 
{
    private int lineNum;
    private int columnNum;
    private int length;
    private boolean flag = false;
    private String color = "Blue";
    private int r;
    private int g;
    private int b;

    keyWords()
    {
        
    }
    
    
    public Vector<keyWords> sort(Vector<keyWords> toSort)
    {
        Vector<keyWords> temp = toSort;
        int ds = temp.get(1).getColumnNum();
        for (int i = 0; i < temp.size(); i++) {
         for (int j = i; j > 0; j--) {
            if (temp.get(j-1).getLineNum() > temp.get(j).getLineNum()) {
               keyWords swap = temp.get(j);
               temp.set(j, temp.get(j-1));
               temp.set(j-1, swap);
            }
         }
      }       
        
        return temp;
    }
    /**
     * @return the lineNum
     */
    public int getLineNum() {
        return lineNum;
    }

    /**
     * @param lineNum the lineNum to set
     */
    public void setLineNum(int lineNum) {
        this.lineNum = lineNum;
    }

    /**
     * @return the columnNum
     */
    public int getColumnNum() {
        return columnNum;
    }

    /**
     * @param columnNum the columnNum to set
     */
    public void setColumnNum(int columnNum) {
        this.columnNum = columnNum;
    }

    /**
     * @return the length
     */
    public int getLength() {
        return length;
    }

    /**
     * @param length the length to set
     */
    public void setLength(int length) {
        this.length = length;
    }

    /**
     * @return the flag
     */
    public boolean isFlag() {
        return flag;
    }

    /**
     * @param flag the flag to set
     */
    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    /**
     * @return the color
     */
    public String getColor() {
        return color;
    }

    /**
     * @param color the color to set
     */
    public void setColor(String color) {
        this.color = color;
    }

    /**
     * @return the r
     */
    public int getR() {
        return r;
    }

    /**
     * @param r the r to set
     */
    public void setR(int r) {
        this.r = r;
    }

    /**
     * @return the g
     */
    public int getG() {
        return g;
    }

    /**
     * @param g the g to set
     */
    public void setG(int g) {
        this.g = g;
    }

    /**
     * @return the b
     */
    public int getB() {
        return b;
    }

    /**
     * @param b the b to set
     */
    public void setB(int b) {
        this.b = b;
    }
    
}
